Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JUNOS cli(...) - Fix call to lxml.etree.ElementBase.getparent erroneously using get_parent #1796

Merged
merged 2 commits into from
Aug 23, 2023

Conversation

chrismooredev
Copy link
Contributor

lxml.etree._ElementTree.get_parent() doesn't exist - it's getparent()

This enables fetching junos command output as XML through <command> | display xml

lxml.etree._ElementTree.get_parent() doesn't exist - it's getparent() - https://lxml.de/apidoc/lxml.etree.html#lxml.etree.ElementBase.getparent

This enables fetching junos command output as XML through `<command> | display xml`
@chrismooredev chrismooredev changed the title Fix call to lxml.etree._ElementTree.getparent [junos] Fix call to lxml.etree.ElementBase.getparent erronously using get_parent Nov 13, 2022
@chrismooredev chrismooredev changed the title [junos] Fix call to lxml.etree.ElementBase.getparent erronously using get_parent JUNOS get_cli - Fix call to lxml.etree.ElementBase.getparent erroneously using get_parent Nov 13, 2022
@chrismooredev chrismooredev changed the title JUNOS get_cli - Fix call to lxml.etree.ElementBase.getparent erroneously using get_parent JUNOS cli(...) - Fix call to lxml.etree.ElementBase.getparent erroneously using get_parent Nov 13, 2022
@tacerus
Copy link

tacerus commented Aug 23, 2023

This would be very useful to programmatically parse output. Is there any update on getting this merged?

@ktbyers ktbyers merged commit cba44b7 into napalm-automation:develop Aug 23, 2023
@tacerus
Copy link

tacerus commented Aug 23, 2023

Thank you for picking it up, @ktbyers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants